<?php
/*
	页面链接
*/
defined('BY_JYA') or exit('error');
list($basicname)=$arguments;
$plugins = $this->plugins($basicname);
$links =array();
foreach($plugins as $k=>&$item){
		$plugintitle = pdo_getcolumn('core_plugins',array('name'=>$item),'title');
		$actionlinks = pdo_getcolumn('core_plugins',array('name'=>$item),'actionlinks');
		$actionlinks = json_decode($actionlinks,true);
		$links[$k]['title']=$plugintitle;
		$links[$k]['plugin_name']=$item;
		$links[$k]['actionlinks']=$actionlinks;
		if(empty($links[$k]['actionlinks'])){
			$links[$k]['actionlinks'][]=array('action'=>'index/','title'=>'首页');
		}
	}
return $links ;